package com.zcxy360.sandtable.domain;

import com.zcxy360.sandtable.domain.VideoSchedule;
import com.zcxy360.sandtable.domain.VideoScheduleExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface VideoScheduleMapper {
	
//	
	List<Map<String,Object>> listForCompletion(@Param("courseId")Integer courseId,@Param("userId")Integer userId,@Param("unitId")Integer unitId);
//
	
    long countByExample(VideoScheduleExample example);

    int deleteByExample(VideoScheduleExample example);

    int deleteByPrimaryKey(@Param("courseId") Integer courseId, @Param("userId") Integer userId, @Param("unitId") Integer unitId, @Param("vvideoId") Integer vvideoId);

    int insert(VideoSchedule record);

    int insertSelective(VideoSchedule record);

    List<VideoSchedule> selectByExample(VideoScheduleExample example);

    VideoSchedule selectByPrimaryKey(@Param("courseId") Integer courseId, @Param("userId") Integer userId, @Param("unitId") Integer unitId, @Param("vvideoId") Integer vvideoId);

    int updateByExampleSelective(@Param("record") VideoSchedule record, @Param("example") VideoScheduleExample example);

    int updateByExample(@Param("record") VideoSchedule record, @Param("example") VideoScheduleExample example);

    int updateByPrimaryKeySelective(VideoSchedule record);

    int updateByPrimaryKey(VideoSchedule record);
}